package com.example.yoga.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author liwenkai
 * @since 2021-02-19
 */
@TableName("course")
public class Course extends Model<Course> {

    private static final long serialVersionUID = 1L;

    /**
     * 课程表ID
     */
    @TableId(value = "courseId", type = IdType.AUTO)
    private Integer courseid;

    /**
     * 课程名字
     */
    @TableField("courseName")
    private String coursename;

    /**
     * 课程所能容纳最大人数
     */
    @TableField("courseMax")
    private String coursemax;

    /**
     * 是否私有
     */
    @TableField("Is_private")
    private String isPrivate;

    /**
     * 是否下架
     */
    @TableField("Is_show")
    private String isShow;


    public Integer getCourseid() {
        return courseid;
    }

    public void setCourseid(Integer courseid) {
        this.courseid = courseid;
    }

    public String getCoursename() {
        return coursename;
    }

    public void setCoursename(String coursename) {
        this.coursename = coursename;
    }

    public String getCoursemax() {
        return coursemax;
    }

    public void setCoursemax(String coursemax) {
        this.coursemax = coursemax;
    }

    public String getIsPrivate() {
        return isPrivate;
    }

    public void setIsPrivate(String isPrivate) {
        this.isPrivate = isPrivate;
    }

    public String getIsShow() {
        return isShow;
    }

    public void setIsShow(String isShow) {
        this.isShow = isShow;
    }

    @Override
    protected Serializable pkVal() {
        return this.courseid;
    }

    @Override
    public String toString() {
        return "Course{" +
        "courseid=" + courseid +
        ", coursename=" + coursename +
        ", coursemax=" + coursemax +
        ", isPrivate=" + isPrivate +
        ", isShow=" + isShow +
        "}";
    }
}
